package com.kgc.scd.service;

import com.kgc.scd.util.PageSupport;
import com.kgc.scd.vo.SensitiveWord;
import com.kgc.scd.vo.ShopGoodsVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("wyyxmall-hx-server")
public interface GoodsFeignService {
     /**
      * 搜索首页列表
      * @param pageNo
      * @param pageSize
      * @param words
      * @return
      */
     @GetMapping("/goods")
     PageSupport<ShopGoodsVO> GoodsList(@RequestParam("pageNo") Integer pageNo,
                                        @RequestParam("pageSize") Integer pageSize,
                                        @RequestParam("words") String words);


     /**
      * 敏感字列表
      * @return
      */
     @GetMapping("/sendWord")
     List<SensitiveWord> getSensitiveWords();

}
